Skip to content

refactor(website): Migrate /list page to go - #5794

Merged
michaelkedar merged 4 commits into
masterfrom
🕸️🚫🐍
Aug 11, 2026

Hidden character warning

The head ref may contain hidden characters: "\ud83d\udd78\ufe0f\ud83d\udeab\ud83d\udc0d"
Merged

refactor(website): Migrate /list page to go#5794
michaelkedar merged 4 commits into
masterfrom
🕸️🚫🐍

Conversation

@michaelkedar

Copy link
Copy Markdown
Member

Final template migration for the Go website, for the /list page.

  • Implemented a bunch of rendering functions needed (e.g. for the "just now", "x minutes ago", etc.
  • Added new ListedVulnerability model for database abstrtactions to return.
  • Did a little bit of refactoring to share some CVSS code between list and vulnerability page.
  • Buncha placeholder data

Stack created with GitHub Stacks CLIGive Feedback 💬

<span role="cell" class="vuln-table-cell mdc-data-table__cell">
<relative-time datetime="{{ vulnerability.published }}">
{{ vulnerability.published | relative_time }}
<relative-time datetime="{{ .FormattedPublished }}">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just make this a span with a title="original date". We can look at this again in the future if the web component make sense to use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it looks like we are not even installing the relative-time web component

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was removed here: 25bc7c6

@michaelkedar michaelkedar Aug 10, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed <relative-time> to a span with a title.

Comment thread go/internal/website/list_models.go Outdated
@michaelkedar
michaelkedar merged commit 28e3d41 into master Aug 11, 2026
27 checks passed
@michaelkedar
michaelkedar deleted the 🕸️🚫🐍 branch August 11, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants